package com.gy.yemall.yemallproduct.dao;

import com.gy.yemall.yemallproduct.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author ye
 * @email 2900801226@qq.com
 * @date 2021-09-30 16:28:53
 */
@Mapper
@Component
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void deleteByIds(@Param("attrId") Long attrId, @Param("attrGroupId") Long attrGroupId);

    void saveRalation(Long attrId, Long attrGroupId);

    void deleteBatchByList(@Param("entities") List<AttrAttrgroupRelationEntity> entities);
}
